Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply [StructLayout(CharSet.Unicode)] to structs that contain the char type #410

Merged
merged 2 commits into from
Sep 18, 2021

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Sep 18, 2021

Without this, the .NET marshaler will assume Ansi, which is the C# default.

Fixes #389

…char` type

Without this, the .NET marshaler will assume Ansi, which is the C# default.

Fixes #389
@AArnott AArnott enabled auto-merge September 18, 2021 21:18
@AArnott AArnott merged commit b13bfcb into main Sep 18, 2021
@AArnott AArnott deleted the fix389 branch September 18, 2021 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Struct getting created with ANSI instead of Unicode string fields, leading to wrong Marshal.SizeOf result
1 participant